/**
 * @author luguoxiang
 * @date 2022/7/5
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
import { createApi, request } from '@/soar';

const basePath = '/system/org';
const subject = '组织机构';
const api = createApi(basePath, subject);

export default {
  ...api,
  nameLinkByIds: (ids) => request.get(`${basePath}/nameLinkByIds`, { params: { ids } }),
  clearCache: () => request.post(`${basePath}/clear-cache`),
  setRoleIds: (data) => request.post(`${basePath}/set-role-ids`, { data }),
  getRoleIds: (orgId) => request.get(`${basePath}/get-role-ids`, { params: { orgId } }),
};
